package android.cmpe451.group7.entity;

import java.io.Serializable;

/**
 * Entity class for places.
 */
public class Multimedia implements Serializable {

	private static final long serialVersionUID = -2892229978903971102L;

	private long multimediaID;
	private User owner;
	private byte[] file;
	private String path;
	private MultimediaType multimediaType;
	private String mimeType;

	public long getMultimediaID() {
		return multimediaID;
	}

	public void setMultimediaID(long multimediaID) {
		this.multimediaID = multimediaID;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public User getOwner() {
		return owner;
	}

	public void setOwner(User owner) {
		this.owner = owner;
	}

	public MultimediaType getMultimediaType() {
		return multimediaType;
	}

	public void setMultimediaType(MultimediaType multimedia) {
		this.multimediaType = multimedia;
	}

	@Override
	public int hashCode() {
		return (multimediaID + path).hashCode();
	}

	public String getMimeType() {
		return mimeType;
	}

	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}

	public byte[] getFile() {
		return file;
	}

	public void setFile(byte[] file) {
		this.file = file;
	}

}
